#include <iostream>
#include <string>
// 包含SpireMS SDK头文件
#include <sms_core.h>
#include "sv2_streamer.h"


using namespace std;


int main(int argc, char *argv[])
{
   std::string job_name = "live";
   std::string config = "";
   std::string specified_input_topic = "";

    if (argc < 2)
    {
        std::cout << "Please input SpireCV Config." << std::endl;
    }
    config = argv[1];
    if (argc > 2)
    {
        specified_input_topic = argv[2];
    }

    sv2::StreamerCppNode node(job_name, config, specified_input_topic);
    node.start();
    node.join();
    return 0;
}
